home *** CD-ROM | disk | FTP | other *** search
/ Turnbull China Bikeride / Turnbull China Bikeride - Disc 1.iso / HENSA / MISC / SHELL.ARC / Shell / h / TextRect < prev    next >
Encoding:
Text File  |  1994-05-30  |  1.0 KB  |  43 lines

  1. #ifndef __Shell_TextRect_h
  2. #define __Shell_TextRect_h
  3.  
  4. #ifndef __Shell_h
  5. #include "Shell.Shell.h"
  6. #endif
  7.  
  8.  
  9. extern Shell_rectblock    *Shell_defaulttextrectblock;
  10.     /* This is the wind used by Shell_Printf.    */
  11.  
  12.  
  13.  
  14. Shell_rectblock *Shell_AddTextRect(
  15.     Shell_windblock    *wind,
  16.     int        x,
  17.     int        y,
  18.     int        forecol,
  19.     int        backcol
  20.     );
  21.     /* Adds a text rectangle to a graphics window. (x, y) is the    */
  22.     /* coors of the top left corner. Print to the rectangle with...    */
  23.  
  24.  
  25. void Shell_TextRectPrint( Shell_rectblock *rect, const char *text);
  26.     /* Adds text to the end of the text in rectblock. The window is    */
  27.     /* resized if nescesary.                    */
  28.     /* Note that the text is not formated at all, so put in a     */
  29.     /* line-feed occasionaly!                    */
  30.  
  31. void Shell_TextRectPrintf( Shell_rectblock *rect, const char *fmt, ...);
  32.     /* As above, but uses printf formating with parameters        */
  33.  
  34. #define Shell_TextRectPrintLine( rect, text)            \
  35.     {                            \
  36.     Shell_TextRectPrint( rect, text);            \
  37.     Shell_TextRectPrint( rect, "\n");            \
  38.     }
  39.     /* Should be fairly clear what this does...            */
  40.  
  41.  
  42. #endif
  43.